package com.admission.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.admission.listener.AuditableEntity;
import com.annotation.AnElement;

//高考录取查询
@Entity
@Table(name = "college_detail")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class CollegeDetail extends AuditableEntity {
	@AnElement
	private String sequence = "";// 序号
	@AnElement
	private String IdNum = "";// 身份证号
	@AnElement
	private String ticketNum = "";// 准考证号
	@AnElement
	private String name = "";// 姓名
	@AnElement
	private String major = "";// 专业
	@AnElement
	private String academy = "";// 学院
	@AnElement
	private String ems = "";// 快递单号
	@AnElement
	private String content = "";// 备注
	private CollegeForm collegeForm;
	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}

	public String getTicketNum() {
		return ticketNum;
	}

	public void setTicketNum(String ticketNum) {
		this.ticketNum = ticketNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getAcademy() {
		return academy;
	}

	public void setAcademy(String academy) {
		this.academy = academy;
	}

	public String getEms() {
		return ems;
	}

	public void setEms(String ems) {
		this.ems = ems;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getIdNum() {
		return IdNum;
	}

	public void setIdNum(String idNum) {
		IdNum = idNum;
	}
	@ManyToOne
	@JoinColumn(name="college_id")
	public CollegeForm getCollegeForm() {
		return collegeForm;
	}

	public void setCollegeForm(CollegeForm collegeForm) {
		this.collegeForm = collegeForm;
	}

}
